<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>  
<form id="pagerForm" method="post" action="log_queryLog.action">
	<input type="hidden" name="method" value="">
	
	<input type="hidden" name="operator" value="${operator}" />
	<input type="hidden" name="qspendTime" value="${qspendTime}" >
	<input type="hidden" name="startTime" value="${startTime}" />
	<input type="hidden" name="endTime" value="${endTime}" >
	
	<input type="hidden" name="pageNum" value="${page.pageNo}" />
	<input type="hidden" name="numPerPage" value="${page.pageSize}" />
	
	<!-- <input type="hidden" name="orderField" value="${param.orderField}" />  -->
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="log_queryLog.action" method="post">
	<div class="searchBar">
		<!--<ul class="searchContent">
			<li>
				<label>我的客户：</label>
				<input type="text"/>
			</li>
			<li>
			<select class="combox" name="province">
				<option value="">所有省市</option>
				<option value="北京">北京</option>
				<option value="上海">上海</option>
				<option value="天津">天津</option>
				<option value="重庆">重庆</option>
				<option value="广东">广东</option>
			</select>
			</li>
		</ul>
		-->
		<table class="searchContent">
			<tr>
               <td>方法</td>
				<td>
					<select class="combox" name="method">
						<option value="">所                        有</option>
						<option value="queryVehPassHis" ${method=='queryVehPassHis'?"selected=selected":''}>卡口过车历史</option>
						<option value="checkUser" ${method=='checkUser'?"selected=selected":''}>用户登陆权限查询</option>
						<option value="queryVehTimeOutHis" ${method=='queryVehTimeOutHis'?"selected=selected":''}>车辆超时历史</option>
						<option value="queryCameraStatus" ${method=='queryCameraStatus'?"selected=selected":''}>卡口状态查询</option>
						<option value="queryNotices" ${method=='queryNotices'?"selected=selected":''}>通知公告信息查询</option>
						<option value="queryFees" ${method=='queryFees'?"selected=selected":''}>行费率标准查询</option>
						<option value="addVehTimeoutRecord" ${method=='addVehTimeoutRecord'?"selected=selected":''}>保存超时历史</option>
						
					</select>
				</td>
                 <td> <select class="combox" name="operator">
						<option value="ge" ${operator=='ge'?"selected=selected":''} >执行耗时大于等于</option>
						<option value="le" ${operator=='le'?"selected=selected":''}>执行耗时小于等于</option>
					</select>
				</td>
				<td> <input name="qspendTime" type="text" class="digits" value="${qspendTime}">  </td>
				<td>
					创建时间  从：<input type="text" class="date" readonly="true" name="startTime" value="${startTime}" />
				</td>
				<td>
					至：<input type="text" class="date" readonly="true" name="endTime" value="${endTime}" />
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
 	
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="120">类名</th>
				<th width="80">方法名</th>
				<th>执行耗时</th>
				<th width="100">执行时间</th>
				<th width="150">查询参数</th>
				<th width="80" align="center">操作</th>
			</tr>
		</thead>
		<tbody>
		
		<c:forEach items="${page.result}" var="rs">
			<tr >

				<td>${rs.modelName}</td>
				<td>${rs.methodName}</td>
				<td>${rs.spendTime}</td>
				<td><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${rs.createTime}"/></td>
				<td>${rs.queryParam}</td>
				<td><input type="button" value="执行" /></td>
			</tr>
		</c:forEach>	
		
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" ${page.pageSize==20?"selected='selected'":"" }>20</option>
				<option value="50"${page.pageSize==50?"selected='selected'":"" }>50</option>
				<option value="100" ${page.pageSize==100?"selected='selected'":"" }>100</option>
				<option value="200" ${page.pageSize==200?"selected='selected'":"" }>200</option>
			</select>
			<span>条，共${page.totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="${page.totalCount}" numPerPage="${page.pageSize}" pageNumShown="10" currentPage="${page.pageNo}"></div>

	</div>
</div>
